from django.views.generic import TemplateView
from rest_framework import  viewsets
from rest_framework.permissions import IsAuthenticated

from app.serializers import CompanySerializer

from app.models import Company


class CompanyViewSet(viewsets.ModelViewSet):
    queryset = Company.objects.all()
    serializer_class =CompanySerializer
    permission_classes = [IsAuthenticated]
